fetch("../public/delivererlist.json")
  .then((response) => {
    if (response.ok) {
      return response.json();
    }
  })
  .then((data) => {
    showOrder(data);
  });
function showOrder(data) {
  data.forEach((data) => {
    let trEle = document.createElement("tr");
    trEle.innerHTML = `
        <td>${data.id}</td>
        <td>${data.name}</td>
        <td>${data.username}</td>
        <td>${data.password}</td>
        <td>${data.role}</td>
        <td>${data.active}</td>
        `;
    document.querySelector(".tbody-delivererlist").appendChild(trEle);
  });
}
